#! /usr/bin/env python
# -*- coding: utf-8 -*-

''' Module for parsig density file
'''
def readdensity(fname):
    f = open(fname, 'r')	
    lines = f.readlines(); f.close
    result = []
    size = float(lines.pop(0))
    max_density_val = float(lines.pop(0))
    for line in lines:
        valyes = [float(x) for x in line.split()]
        result.append(valyes)
    return result, size, max_density_val
